Getting auth token - how to fill request
I keep trying to load API token from that URL https://api.refinitiv.com/auth/oauth2/v2/token using Postman application. I've tried to follow the documentation from Swagger and this is how I filled the required fields:
Unfortunately, the result is:
{
"error": "invalid_client",
"error_description": "client_id value doesn't match HTTP Basic username value"
}
I've tried also to provide username/password within body or tried to pass Authorization header with base64 username/password but with no effects. Then the error was:
{
"error": "invalid_client",
"error_description": "Invalid client or client credentials."
}
I need that token to be able within new application to authenticate user to be allowed to load data from Refinitiv API. But, perhaps there is a better solution for authenticate user within app, then I would be grateful for information. I build that application using React and ELF library.
@Edit: So far I got a token, but with that URL: https://api.refinitiv.com/auth/oauth2/v1/token ("v1" instead of "v2" within the URL above) and credentials like that:
Actually I got the token (first success;), but when I tried to get Business Summary from that URL: https://api.refinitiv.com/user-framework/mobile/overview-service/v1/corp/business-summary/IBM.N then that token didn't work (perhaps because of tle client_id I generated by myself?). I got as a result:
{
"error": {
"id": "33dc2c29-5385-46e6-9c30-3cb15fc52ac6",
"code": "insufficient_scope",
"message": "access denied. Scopes required to access the resource: [trapi.user-framework.workspace.crud]. Missing scopes: [trapi.user-framework.workspace.crud]",
"status": "Forbidden"
}
}
Best Answer
-
Hello @marcin.cholewka,
Did you have a chance to test with Authentication-> Get Access Token request that is included in RDP Postman Starter Collection and Tutorial Samples example deck?
You appear to be missing a couple of required parameters in your Get Token request, this is why I am asking.
Client ID should be generated by yourself, check-marked as "EDP". Please see Quickstart guide for Refinitiv Data Platform for more information on getting started with RDP integration, including client ID requirement.
Additionally, your user id should be permissioned for the RDP service being requested from. The result of Get Acces Token should include the valid token and on it, please examine stanza "scopes" to see if the scope that is required "trapi.user-framework.workspace.crud" is also permissioned to your user id.
I hope this information helps.
0
Answers
-
Thank you for your answer. Finally I got required permission and I am able now to load the Business Summary data. Anyway, I am still not able to make an authentication request using v2 API.
Yes, I made sample Postman authentication request on that RDP collection, but the URL was https://api.refinitiv.com/auth/oauth2/v1/token, not v2. Is maybe any differences between them?
0 -
Hello @marcin.cholewka ,
Please use v1 of Auth at present, I do not believe v2 is officially released yet, from what I know, it still undergoes testing.
0 -
Good, thank you for your opinion. I will use v1 then.0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛